package com.ydy.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.ydy.domain.Product;
import com.ydy.domain.Shop;

public interface ShopMapper {

	List<Shop> selects(@Param("s")Shop s);

	@Select("select * from product")
	List<Product> getProducts();

	int addShop(Shop s);

	int addCenter(@Param("s")Shop s, @Param("split")String[] split);

	Shop show(String id);

	int dels(@Param("ids")Integer[] ids);

	int delCenter(@Param("ids")Integer[] ids);

	Shop getOneForUpdate(String id);

	void updateShop(Shop s);

	void delCenterForUpdate(@Param("ids")String[] ids,@Param("s")Shop s);

	

	

}
